package xiti;

/**
 * Created by mc on 2016/7/25.
 */
public class shisan
{
    public static void main(String[] arge)
    {
        int a[]={70,80,31,37,10,1,48,60,33,80};
        int b[]=new int[10];
        int c;
        int d;
        int e=0;
        for(c=0;c<10;c=c+1)
        {
            for(d=1;d<10;d=d+1)
            {
                if(a[d]<a[d-1])
                {
                    e=a[d];
                    a[d]=a[d-1];
                    a[d-1]=e;


                }
            }

        }
        for(c=0;c<10;c=c+1)
        {
            System.out.printf("%d ",a[c]);
        }
    }
}
